package cn.wizzer.app.sys.modules.models;

import cn.wizzer.app.sys.modules.models.enums.BankUsesEnum;
import cn.wizzer.framework.base.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;

/**
 * 系统银行
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table("sys_pay_way_bank")
public class SysPayWayBank extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(els = {@EL("uuid()")})
    private String id;


    @Column
    @Comment("支付方式ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String payWayId;


    @Column
    @Comment("关联的银行ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String bankLibId;


    @Column
    @Comment("银行编码")
    @ColDefine(type = ColType.VARCHAR, width = 64)
    private String code;


    @Column
    @Comment("用途：仅充值/仅提现/充值、提现")
    @ColDefine(type = ColType.VARCHAR, width = 15)
    private BankUsesEnum uses;

    @Column
    @Comment("排列序号")
    @ColDefine(type = ColType.INT, width = 4)
    private int sort;

    @Column
    @Comment("是否禁用0否1是")
    @ColDefine(type = ColType.BOOLEAN)
    private boolean disabled;

}
